package com.jinbiao.quasar.model;

import lombok.Data;
import org.sagacity.sqltoy.config.annotation.Column;
import org.sagacity.sqltoy.config.annotation.Entity;

import java.sql.Types;
@Data
@Entity(tableName = "sys_user")
public class SysUser extends BaseModel{
    @Column(name = "username", type = Types.VARCHAR)
    private String username;
    @Column(name = "nickname", type = Types.VARCHAR)
    private String nickname;
    @Column(name = "real_name", type = Types.VARCHAR)
    private String realName;
    @Column(name = "password", type = Types.VARCHAR)
    private String password;
    @Column(name = "avatar", type = Types.VARCHAR)
    private String avatar;
    @Column(name = "gender", type = Types.VARCHAR)
    private String gender;
    @Column(name = "mobile", type = Types.VARCHAR)
    private String mobile;
    @Column(name = "email", type = Types.VARCHAR)
    private String email;

    public SysUser(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public SysUser(String username) {
        this.username = username;
    }

    public SysUser() {
    }
}
